#ifndef __NETWORK_H__
#define __NETWORK_H__

#define COMMON_STRING_LENGTH	256

#define NET_DEV_NAME_CTRL		"eth1"
#define NET_DEV_NAME_STREAM		"eth0"

typedef enum net_Intf_t
{
	NET_DEV_CRTL,
	NET_DEV_STREAM,
}netIntf;

int network_config(netIntf intf);
int network_init();
void get_ctrl_mac_address(char *mac);
int test_ping_target_ip(char * ip_addr, char *result, int len);
int adapter_check_start(void);

int GetLocalIp(char *ipaddr);
int GetLocalNetMask(char *netmask_addr);
int GetGateWay(char *gateway);
#endif
